﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace myomscl.Interfaces
{
    #region delegate
    public delegate void OnMaterialsTableLoad();
    public delegate void OnEditFormLoad(Int32? materialAlertId);
    public delegate void OnSaveMaterialAlert(Int32? materialAlertId);
    public delegate void OnDeleteMaterialAlert(Int32 materialAlertId);
    public delegate void OnGridFirstLoad();
    public delegate void OnGridClearTempValues();
    #endregion

    public interface IMaterialsGridView : IView
    {
        #region properties

        Int32 AlertId { get; }
        //List<MaterialGridClass> MaterialsTable { set; }
        Dictionary<int, string> MaterialsList { set; }
        Int32 SelectedMaterial { get; set; }
        Int32 SelectedQuantity { get; set; }
        Boolean IsUitvoerder { get; set; }
        Boolean IsHerstel { get; set; }
        Boolean StoreChangesInDb { get; }

        #endregion

        #region events

        event OnMaterialsTableLoad OnTableLoad;
        event OnEditFormLoad OnEditLoad;
        event OnSaveMaterialAlert OnSave;
        event OnDeleteMaterialAlert OnDelete;
        event OnGridFirstLoad OnFirstLoad;
        event OnGridClearTempValues OnClearTempValues;
        #endregion

    }
}
